 <div ng-controller="GetbreakruleslistCtrl">
 <!-- 头部 -->
 	<div class="panel panel-default">
	 	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;">
	 		<div class="nav navbar-nav m-t">	            
	            <span><b>监控中心</b></span>
	            <i class="fa fa-angle-right" style="font-size:20px"></i>
	            <span><b>电量监控</b> </span>
	            <i class="fa fa-angle-right" style="font-size:20px"></i>
	            <span><b>电量监控列表</b></span> 
	         </div>
	        <!-- nabar right -->
	        <ul class="nav navbar-nav navbar-right">          
	          <li class="dropdown" dropdown>
	            <a href class="dropdown-toggle clear" dropdown-toggle>
	              <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
	                <img src="img/a0.jpg" alt="...">
	                <i class="on md b-white bottom"></i>
	              </span>
	              <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
	            </a>
	            <!-- dropdown -->
	            <ul class="dropdown-menu animated fadeInRight w">  
	              <li>
	                <a ui-sref="app.user.info">用户信息</a>
	              </li>       
	              <li class="divider"></li>
	              <li>
	                <a ui-sref="access.signin" ng-click="logout()">登出</a>
	              </li>
	            </ul>
	            <!-- / dropdown -->
	          </li>
	        </ul>
	 	</div>
	</div>
<div class="panel panel-default m-t-n-md">
	<div class="panel-body">
		
		<table class="table" style="border: none">
			<thead>
				<tr>
					<th>工单编号</th>
					<th>设备编号</th>
					<th>设备名称</th>
					<th>违规时间</th>
					<th>违规类型</th>
					<th>功率峰值</th>
					<th>工单状态</th>
					<th>操作</th>					
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="aaData in aaData">
					<td>
						<a ui-sref="app.order.breakrulesdetail({oid:aaData.violation_id})" style="color: rgb(107,166,226);">{{aaData.violation_id}}</a>
					</td>
					<td>
						{{aaData.equipment_id}}
					</td>
					<td>
						{{aaData.equipment_name}}
					</td>
					<td>
						{{aaData.violation_time}}
					</td>
					<td>
						{{aaData.violation_type}}
					</td>
					<td>
						{{aaData.top_power}}
					</td>
					<td>
						{{aaData.violation_status}}
					</td>
					
					<td>
						<button class="btn btn-xs btn-info" ui-sref="app.order.dobreakrules({doid:aaData.violation_id})" ng-if="aaData.violation_status=='未处理'">处理</button>
						<button class="btn btn-xs btn-default" style="background-color: #ececec" ng-if="aaData.violation_status=='已撤销'">处理</button>
						<button class="btn btn-xs btn-default" style="background-color: #ececec;" ng-if="aaData.violation_status=='已处理'">已处理</button>
						<button class="btn btn-xs btn-success" ng-controller="ChancelModalCtrl" ng-if="aaData.violation_status=='未处理'">
							<script type="text/ng-template" id="chancelModalContent.html">
			                 <div ng-include="'tpl/order/breakrules/chexiaomodal.html'"></div>
				            </script> 
			                <span ng-click="chexiao(aaData.violation_id,aaData.version)" ng-if="aaData.violation_status=='未处理'">撤销</span>
						</button>
						<button class="btn btn-xs btn-default" style="background-color: #ececec;" ng-if="aaData.violation_status=='已处理'||aaData.violation_status=='已撤销'">
							撤销
						</button>
						<button class="btn btn-xs btn-danger" ng-controller="DelModalCtrl">
						    <script type="text/ng-template" id="delModalContent.html">
			                 <div ng-include="'tpl/order/breakrules/delmodal.html'"></div>
				            </script> 
			                <span ng-click="del(aaData.violation_id)">删除</span>
						</button>
					</td>
				</tr>
				
			</tbody>
		</table>


		<div style="text-align: center;">
			<pagination boundary-links="false" total-items="totalItems"
		        ng-model="currentPage" class="pagination-sm embed-responsive-item"
		        previous-text="上一页"
		        next-text="下一页"
		        first-text="首页"
		        last-text="尾页"
		        max-size="maxSize"
		        rotate="false" num-pages="numPages" ng-change="pageChanged()">
		    </pagination>		   
		</div>	
		
	</div>
</div>
</div>
